<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>

<link href="/123/application/Public/Admin/Images/css1/css.css" rel="stylesheet" type="text/css">
<link href="/123/application/Public/Admin/css/page.css" rel="stylesheet" type="text/css">
<style>
td,th {
	text-align: center
}
</style>
</head>
<SCRIPT language=javascript>
<!--
	var displayBar = true;
	function switchBar(obj) {
		if (displayBar) {
			parent.frame.cols = "0,*";
			displayBar = false;
			obj.value = "打开左边管理菜单";
		} else {
			parent.frame.cols = "195,*";
			displayBar = true;
			obj.value = "关闭左边管理菜单";
		}
	}

	function fullmenu(url) {
		if (url == null) {
			url = "admin_left.asp";
		}
		parent.leftFrame.location = url;
	}
        function del(){
            if(confirm('确定删除吗')){
                location.href='__URL__/deleteAll';
            }
        }
//-->
</SCRIPT>



<body>
	<form method='post' action='__MODULE__/Brand/deleteAll'>
		<table class="table" cellspacing="1" cellpadding="2" width="99%"
			align="center" border="0">
			<tbody>
				<tr>
					<th class="bg_tr" align="left" height="25">序号</th>
					<th class="bg_tr" align="left" height="25">品牌名</th>
					<th class="bg_tr" align="left" height="25">品牌描述</th>
					<th class="bg_tr" align="left" height="25">顶级分类</th>
					<th class="bg_tr" align="left" height="25">修改</th>
					<th class="bg_tr" align="left" height="25">
				
			  <input type='submit' name='deleteSubmit' value='删除' onclick="del()"/>
		<input type='hidden' name='p' value='{$p}'/>
		     
					</th>
				</tr>
		<volist name='data' id='vo'>	
				<tr>		
					<td class="td_bg" width="5%" height="23" align="center">{$i}</td>
					<td class="td_bg"  style='text-align:left;padding-left:10px;'>
						<if condition="$vo['cid'] gt 0">						
						 {$vo.name} 
						 </if>
						 <if condition="$vo['cid'] eq 0">
						 <p>--</p>
						 </if>
					</td>
					<td class="td_bg">
					<if condition="$vo.cid gt 0">
					{$vo.content}
					</if>			
	                 <if condition="$vo['cid'] eq 0">
						 <p>--</p>
						 </if>
					</td>
					<td class="td_bg">
					{$vo.cate.name}
					<if condition="$vo['cid'] eq 0">
						 <b>--</b>
						 </if>
					</td>
					<td class="td_bg">	
						<if condition="$vo['cid'] gt 0">
						<a href="__MODULE__/Brand/edit/p/{$p}/id/{$vo.id}">修改</a>
						</if>
						<if condition="$vo['cid'] eq 0">
						<p>--</p>
						</if>
					</td>
					<td class="td_bg">
					<if condition="$vo.cid gt 0">
						<input type='checkbox' value="{$vo.id}" name='id[]' />
					</if>
					<if condition="$vo.cid eq 0">
					 --
					</if>
					</td>
					
				</tr>
		</volist>
				<tr>
					<td colspan="6"><div class="badoo">{$show}</div></td>
				</tr>
			</tbody>
		</table>
	</form>
</body>
</html>
